@extends('home.home')
@section('content')	
<!--content-->
<div class=" container">
<div class=" register">
	<h1>结算页</h1>
                  @foreach($goods as $row)
				 <div class="col-md-6 register-top-grid">
					 <h3>商品信息</h3>
							 <div style="border:1px solid silver;width: 500px;height: 200px;">
							 	<div style="border:1px solid purple;width: 100px;height: 100px;">
							 		<img src="{{asset($row->gpic)}}" width="100%">
							 	</div>
							 	<span>商品名：{{$row->gname}}</span><span>商品价格：{{$row->price}}</span>
							 	<p>商品件数：{{$row-> count}}</p>
							 </div>
					    <hr style="height: 3px; background:silver;" />
					 </div>
                     @endforeach
				     <div class="col-md-6 register-bottom-grid">
						   <h3>收货人信息</h3>
					 <div>
						<span>收货人姓名：{{$data->rec}}</span>
						<div style="height: 20px;"></div>
					 </div>
					 <div>
						<span>收货地址：{{$data->addr}}</span>
						<div style="height: 20px;"></div>
					 </div>
					 <div>
						 <span>联系电话：{{$data->tel}}</span>
						<div style="height: 20px;"></div>
					 </div>

					 </div>
					 <div class="col-md-6 register-bottom-grid">
						   <h3>总计</h3>
					<form action="{{url('/home/order/ok')}}" method="post">
					{{csrf_field()}}
					 <div>
						<span>运费：免</span>
						<div style="height: 20px;"></div>
					 </div>
					 <div>
						 <span>应付总金额：{{$sum}}</span>
						<div style="height: 20px;"></div>
					 </div>
					 <input type="submit">
					   </form>
					 </div>
					

					 <div class="clearfix"> </div>
	
			</div>
</div>
<!--//content-->
@endsection
